package com.weixing.mall.provider.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.weixing.mall.provider.mapper.PayChannelMapper;
import com.weixing.mall.provider.model.domain.PayChannel;
import com.weixing.mall.provider.service.IPayChannelService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 支付渠道 服务实现类
 * </p>
 *
 * @author Small
 * @since 2020-01-08
 */
@Service
public class PayChannelServiceImpl extends ServiceImpl<PayChannelMapper, PayChannel> implements IPayChannelService {

    @Override
    public PayChannel selectByCode(String channelName) {
        return getOne(new QueryWrapper<PayChannel>().eq("channel_code",channelName));
    }
}
